package com.maocc.springnancore;

import com.maocc.springnancore.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * TODO
 *
 * @author maochongchong
 * @version 1.0
 * @date 2021/1/21 18:15
 */
public class TestSpring {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Appconfig.class);
        UserService userService = context.getBean(UserService.class);
        userService.getUser(1);
    }
}
